package com.booking.controller.model.req.order;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author Qikai.Lin
 * @date 2023/4/23
 */
@Data
public class RoomOrderCreateReq {
    /**
     * 用户ID
     */
    @NotNull(message = "用户id不能为空")
    private Long userId;
    /**
     * 房间ID
     */
    @NotNull(message = "房间id不能为空")
    private Long roomId;
    /**
     * 入住日期
     */
    @NotEmpty(message = "入住日期不能为空")
    private String checkInDate;
    /**
     * 退订日期
     */
    @NotEmpty(message = "退订日期不能为空")
    private String checkOutDate;

}
